<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>图片上传</title>

    <link href="css/userRegister.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div id="rg_layout">
        <div id="rg_left">
            <p>头像上传Demo</p>
            <p>UPLOAD PHOTO</p>
        </div>
        <div id="rg_main">
            <form action="/upload" method="post" id="myForm" enctype="multipart/form-data">  <!--onsubmit="return checkForm()"-->
            <table id="myTab">
                <tr>
                    <td colspan="2">
                        <img src="/img/default_headImg.jpg" id="pic" width="150px" height="150px">
                    </td>
                </tr>
                <tr>
                    <td class="td_left">头像</td>
                    <td class="td_right">
                        <input type="file" id="headImg" name="headImg" placeholder="请选择上传的头像"/>
                        <span class="error"></span>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="text-align: center;">
                        <input class="rg_sub" type="submit" value="上传">
                    </td>
                </tr>
            </table>
            </form>
        </div>
    </div>
</body>
</html>